/*
 * 
 * 
 * 
 */
package com.hboxs.asl.service.impl;

import com.hboxs.asl.entity.Order;
import com.hboxs.asl.dao.OrderItemDao;
import com.hboxs.asl.entity.Member;
import com.hboxs.asl.entity.OrderItem;
import com.hboxs.asl.service.OrderItemService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * Service - 订单项
 */
@Service("orderItemServiceImpl")
public class OrderItemServiceImpl extends BaseServiceImpl<OrderItem, Long> implements OrderItemService {

    @Resource(name = "orderItemDaoImpl")
    private OrderItemDao orderItemDao;

    @Resource(name = "orderItemDaoImpl")
    public void setBaseDao(OrderItemDao orderItemDao) {
        super.setBaseDao(orderItemDao);
    }

    @Override
    public Long count(Member member, Boolean hasReview) {
        return orderItemDao.count(member, hasReview);
    }

    @Override
    public List<OrderItem> findOrderItemsWithoutEvaluation(Order order) {
        return orderItemDao.findOrderItemsWithoutEvaluation(order);
    }
}